package cn.stylefeng.guns.modular.gridsystem.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 网关场景配置表
 *
 * @author zxw
 * @date 2022/11/08 16:22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GatewaySceneConfigParam extends BaseParam {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {edit.class})
    private Long id;

    /**
     * 场景主键
     */
    private Long sceneId;

    /**
     * 配置主键
     */
    private Integer configId;

    /**
     * 默认值
     */
    @NotEmpty(message = "默认值不能为空", groups = {edit.class})
    @Size(max = 200, message = "默认值不能超过最大长度200", groups = {edit.class})
    private String defaultValue;

    /**
     * 配置编码
     */
    private String configCode;

}
